import React from 'react'
import {useLocation} from 'react-router-dom'
import qs from 'qs'
export default function Music() {
    const location = useLocation()
    const Msg = qs.parse(location.search.split('?')[1])
  return (
    <div>
        歌曲名称：{Msg.song}
        <br />
        歌曲编号：{Msg.id}
    </div>
  )
}
